package com.zbkj.common.model.client.agent;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 群组表
 * @author: 零风
 * @since: 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "eb_client_group", autoResultMap = true)
@ApiModel(value="AgentGroup对象", description="群组表")
public class AgentGroup implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "群组id")
    private String groupId;

    @ApiModelProperty(value = "群组包含的agent_id,json格式,如[\"xxxx1\", \"xxxx2\"]")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> agentIds;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "标签，json格式，如[\"官方\"]")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> tag;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容描述")
    private String description;

    @ApiModelProperty(value = "使用人数")
    private Integer userCount;

    @ApiModelProperty(value = "对话次数")
    private Integer useCount;

    @ApiModelProperty(value = "agent包含的套餐级别, 冗余字段")
    private Integer packageLevel;

    @ApiModelProperty(value = "头像地址，冗余字段")
    private String headImg;

    @ApiModelProperty(value = "视频地址")
    private String videoUrl;

    @ApiModelProperty(value = "是否删除，0-否，1-是")
    @TableLogic
    private Integer isDel;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
} 